<template>
    <mt-swipe class="mint-swipe" :auto="4000">
        <mt-swipe-item v-for="(item,i) in lunbotu" :key="i">
            <img :src="item[imgname]" alt="" :class="[isfull?'img-full':'img-normal']">
        </mt-swipe-item>
    </mt-swipe>
</template>

<script>
export default {
    data(){
        return{}
    },
    methods:{},
    props:["lunbotu","imgname","isfull"]  //将来谁使用这个轮播图，就必须为其传递一个轮播图的数组,同时只能接收img属性的图片作为轮播图展示出来
}
</script>

<style lang="scss" scoped>
    .mint-swipe{
        height: 180px;

        .mint-swipe-items-wrap{
            text-align: center;
            .img-full{
                width: 100%;
                height: 100%;
            }
            .img-normal{
                height: 100%;
            }
        }
    }
</style>